package com.ziq.zcamp.api.service

const val host = "192.168.0.103"
const val BASE_URL = "http://${host}/"
const val H5_BASE_URL = "http://${host}:30080"
const val BASE_IMAGE_URL = "http://${host}:39000"
const val LONG_LINK_URL = "ws://${host}:3102/sub"


fun getFinalUrl(originUrl : String) : String{
    var url: String = originUrl
    if (!originUrl.startsWith("http") && !originUrl.startsWith("res:")) {
        url = BASE_IMAGE_URL + originUrl
    }
    return url
}

//public
const val BANNER_LIST_API = "public/banner/list" //获取banner列表
const val UPLOAD_FILE_API = "file/upload"
const val MINI_A_CODE = "public/module/wx/miniacode"//生成小程序码

//user
const val PHONE_CODE_API = "user/getSmsCode" //手机验证码
const val PHONE_LOGIN_API = "user/phoneLogin" //手机登录
const val USER_INFO_API = "user/getLoginUserInfo" //用户信息
const val USER_FOLLOW_API = "user/relation/follow" //关注用户
const val USER_UN_FOLLOW_API = "user/relation/unfollow" //取消关注用户
const val USER_NUM_RELATIONS_API = "user/relation/numrelations" //获取用户关系的数量 粉丝、关注、好友
const val USER_RELATION_API = "user/relation/relation" //获取用户关系
const val FOLLOW_RECOMMEND_LIST_API = "user/relation/follow/recommend" //推荐关注

//camp
const val CAMP_CAMP_LIST_SEARCH = "camp/campListSearch" //营地搜索
const val ALL_CITY_LIST_API = "camp/district/getProvinceAndCityList"  //新的全国城市列表接口
const val CAMP_CONDITION_TREE_API = "camp/condition/getConditionTree" //获取营地筛选条件
const val CAMP_RANK_LIST_API = "camp/campListRank" //地区营地榜单
const val CAMP_NATION_NUM_API = "camp/campNationNum" //筛选全国营地个数
const val CAMP_HOT_CONDITION_LIST_API = "camp/condition/hotCondition" //获取高频条件
const val PLACE_DETAIL_API = "camp/detail" //营地详情
const val CAMP_COLLECT_API = "camp/addCollect" //营地加入个人收藏、取消收藏
const val GREEN_CAMP_AGREE_STATUS_API = "camp/protocol/green/agree/status" //获取同意状态

//post
const val MY_CAMPING_DATA = "post/myCampingData" //查询我的露营帖子数据
const val POSTING_RECOMMEND_LIST_API = "post/recommendList" // 查询推荐帖子列表
const val POST_NEARBY_LIST_API = "post/nearByList" //查询附近的帖子列表
const val POST_SUBJECT_API = "post/subject/list" // 查询专题类型列表
const val CREATE_POSTING_API = "post/createPost" // 发帖
const val DELETE_POSTING_API = "post/delPost" // 删除帖子
const val POSTING_DETAIL_API = "post/detail" // 帖子详情
const val POST_RECORD_API = "post/record" //记录帖子行为
const val CAMP_PUNCH_LIST_API = "post/punchList" // 营地打卡的帖子列表
const val PLACE_PUNCH_RECOMMEND_LIST = "post/punchRecommendList" // 营地打卡帖子推荐列表
const val POST_SUBJECT_CONTENT_API = "post/subjectContent/list" // 查询专题文章分页
const val POSTING_LIKE_API = "post/like" // 点赞动态
const val POSTING_UNLIKE_API = "post/unlike" // 取消点赞动态
const val POST_FOLLOW_LIST_API = "post/followList" // 查询关注帖子列表
const val POST_ADMIN_OPERATE_API = "post/operate" //客户端帖子管理接口
const val TOPICS_SEARCH_API = "post/topic/search"
const val TOPICS_DETAILS_API = "post/topic/detail"
const val COMMENT_CREATE_API = "post/commentCreate" // 创建评论接口
const val COMMENT_PAGE_API = "post/commentPage" // 拉取评论页
const val COMMENT_LIKE_API = "post/commentLike" // 点赞、取消点赞评论
const val COMMENT_REPLY_API = "post/commentReply" // 回复评论
const val COMMENT_DELETE_API = "post/commentDelete" // 删除评论
const val MORE_COMMENT_REPLY_API = "post/commentFind" // 查寻评论接口  更多回复

//activity
const val ACTIVITY_RECOMMEND_LIST = "activity/recommendList"//活动推荐列表
const val ACTIVITY_LIST_API = "activity/list"// 活动列表
const val CAMP_ACTIVITY_LIST_API = "activity/listForCamp" // 营地 活动列表
const val ACTIVITY_DETAILS_API = "activity/detail"// 活动详情

//product
const val PLACE_PRODUCT_LIST_API = "product/listForCamp" //营地商品列表
//coupon
const val CAMP_ONLINE_COUPON_LIST = "coupon/onlineCouponList" //营地优惠券列表




